package com.youaishujuhui.devops.web.exception;

import com.youaishujuhui.devops.web.vo.Result;

public enum ExceptionType {
	
	
	SYS_FAIL(Result.SYS_FAIL,"系统异常"),
	LOGIN_FAIL(Result.LOGIN_FAIL,"您还没有登录,请登录"),
	AUTH_FAIL(Result.AUTH_FAIL,"您没有权限,请联系管理员"),
	;
	
	private int code;
	private String msg;
	
	private ExceptionType(int code,String msg) {
		this.code = code;
		this.msg= msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	
    
}
